<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">
	<title>查询出详情</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" href="<%=basePath%>css/record.css">
	<link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
	<script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
</head>
<script>
    function clearNoNum(obj)
    {
        obj.value = obj.value.replace(/[^\d.]/g,"");  //清除“数字”和“.”以外的字符
        obj.value = obj.value.replace(/^\./g,"");  //验证第一个字符是数字而不是.
        obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个. 清除多余的.
        obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
    }
</script>
<body>
	<h2 style="text-align: center">行为记录表</h2>
	<form action="updateById" method="post">
		<%--栅格--%>
			<div class="container record">
				<div style="text-align: center">序号
					<input type="hidden" name="id" value="${be.id}"/>
					<input type="text" name="bid" value="${be.id}" disabled="disabled"/>
				</div>
				<div class="row fot">
					<div class="col-md-3 csyi">
						<div> <span>姓名 ：&nbsp;</span>
							<select name="bname">
								<c:forEach var="c" items="${sessionScope.users}">
									<option <c:if test="${c.name==be.bname}">selected="selected"</c:if>>${c.name}</option>
								</c:forEach>
							</select></div>
					</div>
					<div class="col-md-3 csyi">
						<div> <span>类型  ：&nbsp;</span>
							<select name="bType">
								<option>${be.bType}</option>
								<c:forEach items="${sessionScope.pa}" var="pa">
									<c:if test="${be.bType!=pa.paramValue}">
										<option>
												${pa.paramValue}
										</option>
									</c:if>
								</c:forEach>
							</select></div>
					</div>
					<div class="col-md-3 csyi">
						<div> <span>规程编号:&nbsp;</span>
							<input type="text" name="code" value="${be.code}"/></div>
					</div>
				</div>
				<div class="row fot">
					<div class="col-md-3 csyi">
						<div><span>条款号 : &nbsp;</span>
							<input type="text" name="regular" value="${be.regular}"/></div>
					</div>
					<div class="col-md-3 csyi">
						<div> <span>条款内容 : &nbsp;</span>
							<input type="text" name="bContent" value="${be.bContent}"/></div>
					</div>
					<div class="col-md-3 csyi">
						<div> <span>行为情况 : &nbsp;</span>
							<input type="text" name="bCondition" value="${be.bCondition}"/></div>
					</div>
				</div>
				<div class="row fot">
					<div class="col-md-3 csyi">
						<div> <span>日期 :&nbsp;</span>
							<input type="date" name="bDate" value="${be.bDate}"/></div>
					</div>
					<div class="col-md-3 csyi">
						<div> <span>严重度  :&nbsp;</span>
							<select name="servious">
								<option>${be.servious}</option>
								<c:forEach items="${sessionScope.servious}" var="ser">
									<c:if test="${be.servious!=ser.paramValue}">
										<option>
												${ser.paramValue}
										</option>
									</c:if>
								</c:forEach>
							</select></div>
					</div>
					<div class="col-md-3 csyi">
						<div><span>记录人:&nbsp;</span>
							<select name="people">
								<c:forEach var="c" items="${sessionScope.users}">
									<option <c:if test="${c.name==be.people}">selected="selected"</c:if>>${c.name}</option>
								</c:forEach>
							</select>
						</div>
					</div>
				</div>
				<div class="row fot">
					<div class="col-md-3 csyi">
						<div> <span>计划处罚金额 :&nbsp; </span>
							<input type="text" name="coin" value="${be.coin}" onkeyup="clearNoNum(this)"/></div>
					</div>
					<div class="col-md-3 csyi">
						<div>
							<span>已交处罚金额 :</span>
							<input type="text" name="others1" value="${be.others1}" onkeyup="clearNoNum(this)"/>
						</div>
					</div>
					<div class="col-md-3 csyi">
						<div><span>备注说明:&nbsp;</span>
							<input type="text" name="remark" value="${be.remark}"/>
						</div>
					</div>
				</div>
			</div>
			<div class="caozuo1">
				<input class="gai" type="submit" value="修改" />
				<a class="bavior_return" href="findBehavior">返回</a>
			</div>






	</form>
</body>
</html>
